<% var spoofedApiCall = { auth: "EntityToken" }; %>
<%- generateApiSummary("    ", apiCall, "summary", "https://docs.microsoft.com/rest/api/playfab/" + api.name.toLowerCase() + "/" + apiCall.subgroup.toLowerCase().replaceAll(" ","-") + "/" + apiCall.name.toLowerCase())
%>    public static function <%- apiCall.name %>WithEntityToken($titleId, <%- getAuthInputParams(spoofedApiCall) %>$request)
    {
<%- getRequestActions("        ", spoofedApiCall) %>
        $result = PlayFabHttp::MakeCurlApiCall($titleId, "<%- apiCall.url %>", $request, <%- getCurlAuthParams(spoofedApiCall) %>);
        return $result;
    }
<% spoofedApiCall = { auth: "SessionTicket" }; %>
<%- generateApiSummary("    ", apiCall, "summary", "https://docs.microsoft.com/rest/api/playfab/" + api.name.toLowerCase() + "/" + apiCall.subgroup.toLowerCase().replaceAll(" ","-") + "/" + apiCall.name.toLowerCase())
%>    public static function <%- apiCall.name %>WithSessionTicket($titleId, <%- getAuthInputParams(spoofedApiCall) %>$request)
    {
<%- getRequestActions("        ", spoofedApiCall) %>
        $result = PlayFabHttp::GetEntityToken($titleId, "<%- apiCall.url %>", $request, <%- getCurlAuthParams(spoofedApiCall) %>);
        return $result;
    }
<% spoofedApiCall = { auth: "SecretKey" }; %>
<%- generateApiSummary("    ", apiCall, "summary", "https://docs.microsoft.com/rest/api/playfab/" + api.name.toLowerCase() + "/" + apiCall.subgroup.toLowerCase().replaceAll(" ","-") + "/" + apiCall.name.toLowerCase())
%>    public static function <%- apiCall.name %>WithSecretKey($titleId, <%- getAuthInputParams(spoofedApiCall) %>$request)
    {
<%- getRequestActions("        ", spoofedApiCall) %>
        $result = PlayFabHttp::GetEntityToken($titleId, "<%- apiCall.url %>", $request, <%- getCurlAuthParams(spoofedApiCall) %>);
        return $result;
    }
